package com.asman.vr.dto

import androidx.annotation.MainThread
import com.asman.vr.network.Api
import com.asman.vr.network.liveData
import java.util.concurrent.Executor

/**
 * @author ybk
 * @date :2020/5/19 11:32 AM
 * @desc:
 */
class CustomerRepository(private val api: Api, private val networkExecutor: Executor) {

    @MainThread
    fun getCustomerList(type: Int, pageNo: Int, pageSize: Int) =
        liveData(api.getCustomerList(pageNo, pageSize, type))

}